using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Cworld2000.GsSyndication.Pocket
{
    public partial class ContentViewForm : Form, IContentViewForm
    {
        public ContentViewForm()
        {
            InitializeComponent();
        }

        public Uri Uri
        {
            get
            {
                return webView.Url;
            }

            set
            {
                webView.Url = value;
            }
        }

        private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            switch (toolBar.Buttons.IndexOf(e.Button))
            {
                case 0: webView.Stop();
                    break;
                case 1: webView.GoBack();
                    break;
                case 2: webView.GoForward();
                    break;
            }
        }
    }
}